import Taro, { Component } from "@tarojs/taro";
import { View, Button, Text, Image } from "@tarojs/components";
import { connect } from "@tarojs/redux";
import "./head.less";

class Template extends Component {
  render() {
    return (
      <View className="customer-type">
        <View className="type-body">
          <View className="customer" onClick={() => {
            Taro.redirectTo({
              url:"/pages/customer/list?type=today&status=0"
            })
          }}>
            <View className="customer-type-title">
              <Text style="font-size:12px;">今日预约到店客户</Text>
            </View>
            <View className="customer-type-num ">
              <Text style="font-size:36px;color:#57B5FE">{this.props.daycnt}</Text>
            </View>
          </View>
          <View className="customer-type-driver" />
          <View className="customer" onClick={() => {
            Taro.redirectTo({
              url:"/pages/customer/list?type=tomorrow&status=0"
            })
          }}>
            <View className="customer-type-title">
              <Text style="font-size:12px;">明日预约到店客户</Text>
            </View>
            <View className="customer-type-num ">
              <Text style="font-size:36px;color:#FAA24B">{this.props.tcnt}</Text>
            </View>
          </View>
        </View>
      </View>
    );
  }
}
export default Template;
